using System;
using System.Collections.Generic;
using System.Text;

namespace Colorprj.Masters
{
    class Party
    {
        private int _PartyId = -1;
        public int PartyId
        {
            get
            {
                return _PartyId;
            }
            set
            {
                _PartyId = value;
            }
        }

        private string _PartyName = "";
        public string PartyName
        {
            get
            {
                return _PartyName;
            }
            set
            {
                if (string.IsNullOrEmpty(value.Trim())) throw new Exception("Party Name Can Not be null");
                _PartyName = value;
            }
        }

        private string _PartyAddress1 = "";
        public string PartyAddress1
        {
            get
            {
                return _PartyAddress1;
            }
            set
            {
                _PartyAddress1 = value;
            }
        }


        private string _PartyAddress2 = "";
        public string PartyAddress2
        {
            get
            {
                return _PartyAddress2;
            }
            set
            {
                _PartyAddress2 = value;
            }
        }

        private string _PartyCity = "";
        public string PartyCity
        {
            get
            {
                return _PartyCity;
            }
            set
            {
                _PartyCity = value;
            }
        }

        private string _PhoneNo = "";
        public string PhoneNo
        {
            get
            {
                return _PhoneNo;
            }
            set
            {
                _PhoneNo = value;
            }
        }

        private string _EmailId = "";
        public string EmailId
        {
            get
            {
                return _EmailId;
            }
            set
            {
                _EmailId = value;
            }
        }
    }
}
